set Source
Sets and plays the source specified by playlist index (0 based).
Indexes greater than the size of the playlist will wrap.
Parameters
the index of the source in the playlist
Sets and plays the specified Source
in the playlist.
Parameters
the source
Set the source by index (0 based). Indexes greater than the size of the playlist will wrap.
Only available from version 2.1.144
on.
Parameters
the index of the source in the playlist
set false to only set current index and not start playback
Sets the current source.
This method allows you to change the currently active media source. It is only available from version 2.1.144
onwards.
Parameters
The new Source to be set. This source must be present in the current playlist. If the provided source is not found in the playlist, or if the playlist is null or empty, this method will have no effect.
If set to true
, playback will start immediately after setting the new source. If set to false
, the source will be set, but playback will not start automatically. This parameter influences whether pending "next" or "auto-next" actions are cleared and whether a new "next" action is scheduled.